package com.gobi.consumer.controller;

import com.gobi.consumer.api.TaxApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by YingYou on 2019/12/27.
 */
@RestController
public class BaiduController {

    @Autowired
    private TaxApi taxApi;

    //localhost:9020/parentTax
    @GetMapping("parentTax")
    public String parentTax(@RequestParam(defaultValue = "1243124312431243") String taxNum) {
        return "税号结果：" + taxApi.parentTax(taxNum);
    }
}
